package top.lcpsky.flashcards.util;

/**   
 * @ClassName:  ResultCode   
 * @Description:TODO(这里用一句话描述这个类的作用)   
 * @author: lcp
 * @date:   2019年11月10日 下午11:30:25   
 *     
 * @Copyright: 2019 www.ankept.com Inc. All rights reserved. 
 */
public enum  ResultCode {

    SUCCESS(0, "请求成功"),
    WARN(-1, "网络异常，请稍后重试");

    private int code;
    private String msg;

    ResultCode(int code, String msg) {
        this.msg = msg;
    }

    public int getCode() {
        return code;
    }

    public String getMsg() {
        return msg;
    }

}